import time
from selenium import webdriver
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()

driver.get("http://121.43.169.97:8848/pageA.html")

driver.maximize_window()
# time.sleep(3)
#
# driver.find_element(By.CSS_SELECTOR,"#userA").send_keys("admin")
# driver.find_element(By.CSS_SELECTOR,"[name='passwordA']").send_keys("123456")
#
# driver.find_element(By.CSS_SELECTOR,".telA").send_keys("13800000001")
#
# driver.find_element(by=By.CSS_SELECTOR,value=".emailA.dzyxA").send_keys("123456@qq.com")
# driver.find_element(By.CSS_SELECTOR,"button").click()
#
# time.sleep(3)
#
# driver.quit()

# 层级关系
driver.find_element(By.CSS_SELECTOR,"p>input").send_keys("admin")
driver.find_element(By.CSS_SELECTOR,"from input").send_keys("test")
driver.find_element(By.CSS_SELECTOR,"input[id*='pass']").send_keys("123456")

time.sleep(3)
driver.quit()










